

Page({
  data: {
    array:['全部','美术基础1班','美术基础2班','钢琴5班','钢琴6班'],
    type:0,
    choseClassBank:"请选择班级",
    teachNum:15,
    multiArray: [['今天', '明天', '3-2', '3-3', '3-4', '3-5'], [0, 1, 2, 3, 4, 5, 6], [0, 10, 20]],
    startDate:"5",
    date:"2021-05-11",
  },
  /***
   * 按班级筛选
   */
    bindPickerChange: function (e) {
    var that=this
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
     type: e.detail.value,
     choseClassBank: that.data.array[e.detail.value]
    })
  },
  /***
   * 时间选择
   */
  bindDateChange: function (e) {
    var that=this
    console.log('picker发送选择改变，携带值为', e.detail.value)
    that.setData({
      date: e.detail.value
    })
  }
  
})



